Compares two double values considering the defined precision.
0 if the values are considered equal, -1 if a is less than b, and 1 if a is greater than b.
0
-1
a
b
1
The first double value to compare.
The second double value to compare.